package com.atguigu.hellomp.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
// @TableName(value = "user")
public class User {

    @TableId(type = IdType.AUTO)// auto=mysql自增
    private Long id;

    @TableField
    private String name;

    @TableField
    private Integer age;

    @TableField
    private String email;

    @TableField(exist = false)
    private String extra;

    @TableLogic
    private int deleted;

}
